package com.clkj.sunhelp.mvp.publicityshow;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.clkj.sunhelp.R;
import com.clkj.sunhelp.mvp.base.BaseActivity;
import com.clkj.sunhelp.mvp.publicityshow.publicityofapplyobj.ActivityPublicityOfApplyObj;
import com.clkj.sunhelp.mvp.publicityshow.publicityofapplyresult.ActivityPublicityOfApplyResultSearchView;
import com.clkj.sunhelp.mvp.publicityshow.publicityoffundrelease.ActivityPublicityOfFundReleaseSearchView;
import com.clkj.sunhelp.mvp.publicityshow.publicityofshenpiprocess.ActivityPublicityOfShenPiProcessSearchView;
import com.clkj.sunhelp.util.IntentUtil;

/**信息公示查询主界面
 * Created by Administrator on 2017/3/26.
 */

public class ActivityPublicityMainView extends BaseActivity implements View.OnClickListener{

    private TextView tvApplyObjectShow;
    private TextView tvApplyResultShow;
    private TextView tvFundGiveOutShow;
    private TextView tvPublicityShenpiProcessShow;





    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_publicity_main_view);
        initTitleWithRightTvOrIv(null,null,"公示信息查询",true,null,null);
        initData();
        assignView();
        initView();
    }

    @Override
    public void initData() {

    }

    @Override
    public void assignView() {
        tvApplyObjectShow = (TextView) findViewById(R.id.tv_apply_object_show);
        tvApplyResultShow = (TextView) findViewById(R.id.tv_apply_result_show);
        tvFundGiveOutShow = (TextView) findViewById(R.id.tv_fund_give_out_show);
        tvPublicityShenpiProcessShow = (TextView) findViewById(R.id.tv_publicity_shenpi_process_show);

    }

    @Override
    public void initView() {
        tvApplyObjectShow.setOnClickListener(this);
        tvApplyResultShow .setOnClickListener(this);
        tvFundGiveOutShow.setOnClickListener(this);
        tvPublicityShenpiProcessShow.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId())
        {
            case R.id.tv_apply_object_show:
                IntentUtil.startNewActivity(this, ActivityPublicityOfApplyObj.class);

                break;
            case R.id.tv_apply_result_show:
                IntentUtil.startNewActivity(this, ActivityPublicityOfApplyResultSearchView.class);
                break;
            case R.id.tv_fund_give_out_show:
                IntentUtil.startNewActivity(this, ActivityPublicityOfFundReleaseSearchView.class);
                break;
            case R.id.tv_publicity_shenpi_process_show:
                IntentUtil.startNewActivity(this, ActivityPublicityOfShenPiProcessSearchView.class);
                break;

        }
    }
}
